
<%layout("/template/admin/common/_layout.html", {title: '编辑'}){ %>
<div class="page-container">
	<form action="${ctxPath}/manager/update/${table_name!}" target="_parent" method="post" class="form form-horizontal" id="form-article-add">
		
		<input type="hidden" class="input-text" name="admin.id" value="${record.id!}">
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>管理员名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" name="admin.name" value="${record.name!}">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>管理员密码：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" name="admin.password" value="${record.password!}">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">角色：</label>
			<div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
			<select class="select" name="admin.powerCode" size="1">
				<option value="superAdmin" <% if(record.powerCode == 'superAdmin'){ %> selected="selected" <% } %> >超级管理员</option>
				<option value="editor" <% if(record.powerCode == 'editor'){ %> selected="selected" <% } %> >编辑员</option>
			</select>
			</span> 
			</div>
		</div>
		
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 提交</button>
				<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
	
<script type="text/javascript">
	function layer_close(){
		layer.closeAll();
	}
</script>
</div>


<% } %>

